/* 点位管理接口 */
import request from '@/utils/request'

/* 点位列表 */
export const pointList = (data) => request.get('/api/vm-service/node/search', {
  params: data
})

/* 获取点位详情 */
export const getPoint = (id) => request.get('/api/vm-service/node/vmList/' + id)

/* 删除点位 */
export const delPoint = (id) => request.delete('/api/vm-service/node/' + id)
/* 新增点位 */
export const addPoint = (data) => request.post('/api/vm-service/node', data)

/* 修改点位 */
export const changePoint = (id, data) => request.put('/api/vm-service/node/' + id, data)
